
/**
 * 包括测试环境和本地开发环境，数据层面是不隔离的
 * @returns
 */
 export function isDevForBoth () {
    // 数据层面 测试环境和本地是不隔离的
    return isDev() || isLocal();
  }
  
  /**
   * // 判断是否为测试环境
   * @returns
   */
  export function isDev () {
    // let location = window.location
    // let localIdentifyings = [ 'static-qa'];
    // let isDev = localIdentifyings.some(id => location.href.indexOf(id) !== -1);
    // return isDev;
    return process.env.VUE_APP_CURRENTMODE === 'test';
  }
  
  /**
   * // 判断是否为本地开发环境
   * @returns
   */
  export function isLocal () {
    // const isDev = ['test', 'development'].includes(process.env.VUE_APP_CURRENTMODE);
    // let location = window.location
    // let localIdentifyings = ['com:808'];
    // let isDev = localIdentifyings.some(id => location.href.indexOf(id) !== -1);
    return process.env.VUE_APP_CURRENTMODE === 'development' || location.href.indexOf(':808') !== -1;
    // return isDev;
  }
  